package www.lagou.entity;

/**
 * id INT PRIMARY KEY AUTO_INCREMENT, -- 部门ID
 * deptname VARCHAR(20) DEFAULT NULL -- 部门名称
 */
public class Dept {

    private int did;    //部门ID
    private String deptname;    //部门名称

    @Override
    public String toString() {
        return "Dept{" +
                "did=" + did +
                ", deptname='" + deptname + '\'' +
                '}';
    }

    public Dept() {
    }

    public Dept(int did, String deptname) {
        this.did = did;
        this.deptname = deptname;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }
}
